package io.renren;

import io.renren.modules.alarm.service.AlarmTacticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class RenrenApplication {

	private static AlarmTacticsService alarmTacticsService;

	@Autowired
	public void setAlarmTacticsService(AlarmTacticsService alarmTacticsService){
		RenrenApplication.alarmTacticsService = alarmTacticsService;
	}

	public static void main(String[] args) {
		SpringApplication.run(RenrenApplication.class, args);

		//启动定时任务
		alarmTacticsService.getRunList();
		System.out.println("环境质量监测启动成功！");
	}

}